package com.example.demo.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by huby on 2021/7/26.
 */
@RestController("")
public class TestHttpReceiveController {

    @RequestMapping(value = "/testReceive/{data}",method ={ RequestMethod.GET,RequestMethod.POST})
    public String Test(@PathVariable String data){
        return "test success"+data;

    }
}
